package com.rocksdata.mc.entity;

import java.io.Serializable;
import java.util.List;

public class StudentContactInfo implements Serializable {
	private String classCode;
	private String className;
	private String label;
	private List<StudentInfo> students;
	public boolean isChecked;

	public String getClassCode() {
		return classCode;
	}

	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

    public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

    public List<StudentInfo> getStudents() {
        return students;
    }

    public void setStudents(List<StudentInfo> students) {
        this.students = students;
    }

	@Override
	public boolean equals(Object o) {
		if(o == null){
			return false;
		}
		StudentContactInfo info = null;
		try {
			info = (StudentContactInfo) o;
		}catch (Exception e){

		}
		if(info == null){
			return false;
		}
		return info.classCode.equals(classCode);
	}
}
